var fuzzerThread = function(threadID, method, url) {
  this.threadID = threadID;
  this.method = method;
  this.url = url;
  this.result = 0;
};

fuzzerThread.prototype = {
  run: function() {
    try {
      // This is where the working thread does its processing work.
      
      var fuzz = new Fuzzer();
      
      // When it's done, call back to the main thread to let it know
      // we're finished.
      
      main.dispatch(new mainThread(this.threadID, this.result),
        background.DISPATCH_NORMAL);
    } catch(err) {
      Components.utils.reportError(err);
    }
  },
  
  QueryInterface: function(iid) {
    if (iid.equals(Components.interfaces.nsIRunnable) ||
        iid.equals(Components.interfaces.nsISupports)) {
            return this;
    }
    throw Components.results.NS_ERROR_NO_INTERFACE;
  }
};
